package cn.hzxs.zjn.utils;

import lombok.Data;

/**
 * @Author: Zjn ; Bring it on !!!
 * @Date: 2021/4/23 0023 7:52
 * Note:
 */
@Data
public class JsonResult<T> {
    private T data;
    private String code;
    private String msg;

    public JsonResult(T data) {
        this.data = data;
        this.code = "200";
        this.msg = "success";
    }

    public JsonResult(String msg) {
        this.code = "200";
        this.msg = msg;
    }
}
